package ${packageName}.activity;

import ${packageName}.R;


/**
 * 描述：欢迎引导页
 * 作者：xiaoxing on 17/4/20 13:14
 * 邮箱：2235445233@qq.com
 */
public class ${activityClass} extends BaseActivity {


    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.${layoutName}); 
    }

    @Override
    public void doBusiness(Context mContext) {
        super.doBusiness(mContext);
        check_is_first();
    }

    /**
     * 检查是否第一次登陆
     */
    private void check_is_first() {
        if (getIsFirstLogin()) {//第一次

            startActivity(AnimationActivity.class);
//          startActivity(GuideActivity.class);
            sHelperPutBoolen(BaseConstant.IS_FIRST, false);
        } else {
            startActivity(AnimationActivity.class);
        }
        finish();
    }
}
